home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / polyfit7.doc < prev    next >
Text File  |  1995-03-31  |  2KB  |  31 lines

  1. (Comp.sys.hp48) 
  2. Item: 416 by oss at itnvax.cineca.it [Stefano Oss] 
  3. Subj: polynomial fitting with 48sx 
  4. Date: Thu Dec 19 1991 
  5.  
  6.   I am proposing here a simple application for the HP48SX calculator. 
  7. The program is intended to be used for obtaining a polymomial (any 
  8. reasonable degree) of a given set of X-Y data with graphical 
  9. output. The program consits of the following procedures: 
  10.  
  11. MINA, MAXA       find the minimum (maximum) of a given vector; 
  12. ROCO             performs the break-up of a given matrix in its rows; 
  13. PLTF             gives a graphical representation of both X-Y set 
  14.                  as small crosses and the fitting polynomial; 
  15. POLF             computes the fitting polynomial in a least squares 
  16.                  sense and the standard chi-square number (equal 
  17.                  weights). 
  18.  
  19. In order to run this program it is simply needed to input the X-Y 
  20. data set in matrix form.  For N data a 2 rows N columns matrix will 
  21. be entered in the stack.  Then the requested polynomial degree is 
  22. inserted and the POLF procedure is called.  On the LCD screen the 
  23. graphical output will appear together with the chi-square value. 
  24. After pressing the ON key an algebraic equation (stored in POL) 
  25. containg the least squares fitting polynomial will appear. 
  26. The program is extremely simple and it can be of course changed in 
  27. its many parts in order to improve its possibilities.  It should be 
  28. considered only as a little application.  A working one, anyway. 
  29. Comments and/or suggestions are really welcome ! 
  30.                                                     Stefano Oss 
  31.